<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<script type="text/javascript">
function Member(){
	this.irum="ahn";
	this.age=18;
	this.address="KyungGi";
	this.score=90;
	/*setter 정의*/
	this.setIrum = function(v){this.irum=v;}
	this.setAge =function(v){this.age=v;}
	this.setAddress=function(v){this.address=v;}
	this.setScore=function(v){this.score=v;}
}

var m=new Member();
document.write(m.irum);

m.setIrum("kim");
document.write("<br/>"+m.getIrum);
</script>
<body>

</body>
</html>